package com.zhupanlin.io;

import java.io.InputStream;

/**
 * 描述信息：
 *
 * @author zhupanlin
 * @version 1.0
 * @date 2025/2/8 16:53
 */
public class Resources {

    /**
     * 根据资源路径获取资源输入流
     * @param path
     * @return
     */
    public static InputStream getResourceAsStream(String path) {
        InputStream resourceAsStream = Resources.class.getClassLoader().getResourceAsStream(path);
        return resourceAsStream;
    }
    
}